/*
 * @Author: 郝奔 1425466221@qq.com
 * @Date: 2024-11-22 09:21:08
 * @LastEditors: 郝奔 1425466221@qq.com
 * @LastEditTime: 2024-12-26 10:33:40
 * @FilePath: /HG-dqbasic_open_platform/src/directive/utils/index.ts
 * @Description: 
 * Copyright (c) 2024-present HBIS Digital Technology Co.,Ltd. All rights reserved. 
 */
import { Directive } from 'vue';
/**
 * 按钮防抖
 */
export const deBounce:Directive = {
  mounted(el:HTMLElement) {
    el.addEventListener('click', () => {
      el.classList.add('is-disabled')
      setTimeout(() => {
        el.classList.remove('is-disabled')
      }, 2000)
    })
  }
}
